package cn.enilu.guns.bean.entity.door;


import lombok.Data;
import cn.enilu.guns.bean.entity.BaseEntity;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Transient;

@Entity(name="T_EQUIPMENT_INFO")
@Table(appliesTo = "t_equipment_info",comment = "设备信息表")
@Data
@EntityListeners(AuditingEntityListener.class)
public class EquipmentInfo extends BaseEntity {

	/**
	 * 
	 */
	@Column(columnDefinition = " INT(10) COMMENT ''")
	private Integer version;

	/**
	 * 设备名称
	 */
	@Column(columnDefinition = " VARCHAR(255) COMMENT '设备名称'")
	private String equipmentName;

	/**
	 * 通信方式
	 */
	@Column(columnDefinition = " VARCHAR(32) COMMENT '通信方式'")
	private String communicationMode;

	/**
	 * IP地址
	 */
	@Column(columnDefinition = " VARCHAR(32) COMMENT 'IP地址'")
	private String ipAddress;

	/**
	 * 通信端口
	 */
	@Column(columnDefinition = " VARCHAR(32) COMMENT '通信端口'")
	private String communicationPost;

	/**
	 * 通信密码
	 */
	@Column(columnDefinition = " VARCHAR(32) COMMENT '通信密码'")
	private String communicationPassword;

	/**
	 * 图标类型
	 */
	@Column(columnDefinition = " VARCHAR(32) COMMENT '图标类型'")
	private String iconType;

	/**
	 * 门禁控制器类型
	 */
	@Column(columnDefinition = " VARCHAR(32) COMMENT '门禁控制器类型'")
	private String controllerType;

	/**
	 * 区域
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '区域'")
	private Long areaId;

	/**
	 * 序列号
	 */
	@Column(columnDefinition = " VARCHAR(64) COMMENT '序列号'")
	private String serialNumber;
	@Transient
	private String openStatus;
	@Transient
	private String onlineStatus;

}
